<!DOCTYPE html>  
<html xmlns:th="http://www.thymeleaf.org">  
  <head>  
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
  </head>  
  <body>  	
    <label th:text="${error}" style="color: red; margin-bottom: 20px;"></label>
    <h1>Login</h1>
  	<form action="#" th:action="@{/login}" method="post">  
    	<table>
    		<tr>
    			<td>
				    <label>用户名</label><input id="userName" name="userName" placeholder="请输入用户名"></input>
    			</td>
    		</tr>
    		<tr>
    			<td>
				    <label>密&nbsp;码</label><input id="password" name="password" placeholder="请输入密码"></input>
    			</td>
    		</tr>
    		<tr>
    			<td>
    				<button type="submit">登录</button>
    			</td>
    		</tr>
    	</table>
    </form>
    
  </body>  
</html>  